home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / gravity.swf / scripts / frame_113 / PlaceObject2_187_111 / CLIPACTIONRECORD onClipEvent(load).as < prev   
Encoding:
Text File  |  2007-03-28  |  547 b   |  17 lines

  1. onClipEvent(load){
  2.    if(myGoCommand == "blow")
  3.    {
  4.       this._x = _parent.lander._x + (random(20) - 10);
  5.       this._y = _parent.lander._y + (random(20) - 10);
  6.       gotoAndStop(98, random(5) + 5);
  7.       grow = random(12);
  8.    }
  9.    if(myGoCommand == "go")
  10.    {
  11.       xDirect = (random(15) - 7) / 10 + Math.cos(0.017453292519943295 * _parent.lander.myRotation);
  12.       yDirect = (random(15) - 7) / 10 + Math.sin(0.017453292519943295 * _parent.lander.myRotation);
  13.       gotoAndStop(98, random(2) + 1);
  14.    }
  15.    myTTL = getTimer();
  16. }
  17.